<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String context = request.getContextPath();
%>

<div id="content">
	<div class="post">
		<h2 class="title">
			<a href="#">Ingresar</a>
		</h2>
		
		<form action="<%=context%>/login" method="post">
			<div class="campo-formulario">
				<label>Usuario:</label><input type="text" name="usuario">
			</div>
			<div class="campo-formulario">
				<label>Password:</label><input type="password" name="password">
			</div>
			<input type="submit" value="Ingresar" class="boton-ingresar">
		</form>
		<c:if test="${not empty error}">
			<p>${error}</p>
		</c:if>
		<a href="<%=context%>/registro" class="boton-ingresar">Registrarse</a>
	</div>
</div>